package com.xx.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @Author : 徐闯 ssm_admin
 * @Date : 2021-05-17 14:05:42
 * @Description : 加密类
 **/
public class PasswordEncodeUtil {
    private static BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
    //加密方法
    public  static String getEncodePassword(String str){
        return bCryptPasswordEncoder.encode(str);
    }

    public static void main(String[] args) {
        String str = "kuaile";
        System.out.println(getEncodePassword(str));
    }
}
